import request from '@/utils/request'

export function goodCategoryList (data) {
  return request({
    url: '/pc/mall/category/listByPage',
    method: 'post',
    data
  })
}

export function goodCategoryActive (data) {
  return request({
    url: '/pc/mall/category/activity',
    method: 'post',
    data
  })
}

export function goodCategoryFrozen (data) {
  return request({
    url: '/pc/mall/category/frozen',
    method: 'post',
    data
  })
}

export function goodCategoryAdd (data) {
  return request({
    url: '/pc/mall/category/add',
    method: 'post',
    data
  })
}

export function goodCategoryUpdate (data) {
  return request({
    url: '/pc/mall/category/update',
    method: 'put',
    data
  })
}

export function productList (data) {
  return request({
    url: '/pc/mall/product/listByPage',
    method: 'post',
    data
  })
}

export function productAdd (data) {
  return request({
    url: '/pc/mall/product/add',
    method: 'post',
    data
  })
}

export function productUpdate (data) {
  return request({
    url: '/pc/mall/product/update',
    method: 'put',
    data
  })
}

export function productActive (data) {
  return request({
    url: '/pc/mall/product/activity',
    method: 'post',
    data
  })
}

export function productFrozen (data) {
  return request({
    url: '/pc/mall/product/frozen',
    method: 'post',
    data
  })
}

export function shopsList (data) {
  return request({
    url: '/pc/mall/shops/listByPage',
    method: 'post',
    data
  })
}

export function shopsAdd (data) {
  return request({
    url: '/pc/mall/shops/add',
    method: 'post',
    data
  })
}

export function shopsUpdate (data) {
  return request({
    url: '/pc/mall/shops/update',
    method: 'put',
    data
  })
}

export function shopsActive (data) {
  return request({
    url: '/pc/mall/shops/activity',
    method: 'post',
    data
  })
}

export function shopsFrozen (data) {
  return request({
    url: '/pc/mall/shops/frozen',
    method: 'post',
    data
  })
}

export function shopsSelect (data) {
  return request({
    url: '/pc/mall/shops/listForSelect',
    method: 'post',
    data
  })
} 
